package boot.spring.mapper;

import boot.spring.po.Admin;
import boot.spring.po.Staff;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface AdminMapper {
    Admin getAdminByUsername(@Param("username") String username);
    List<Staff> getAllUsers();
    List<Staff> getUsersBySearch(@Param("search") String search, @Param("offset") int offset, @Param("size") int size);
    void deleteUserById(@Param("id") int id);
    void insertNotice(@Param("content") String content);
    Staff getUserById(@Param("id") int id);
} 